package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppRoomPaimaiDao;
import com.vf.admin.client.service.AppRoomPaimaiService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppRoomPaimai;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 房间排麦
 * @author anxiang
 * @version 1.0.0
 * @ClassName AppRoomPaimaiServiceImpl.java
 * @Description TODO
 * @createTime 2021年07月29日 14:51:00
 */
@Service
public class AppRoomPaimaiServiceImpl implements AppRoomPaimaiService{

    @Autowired
    AppRoomPaimaiDao appRoomPaimaiDao;

    @Override
    public AppRoomPaimai get(Integer id) {
        return appRoomPaimaiDao.get(id);
    }

    @Override
    public void save(AppRoomPaimai haoYou) {
        appRoomPaimaiDao.save(haoYou);
    }

    @Override
    public void del(Integer roomid,Integer userid) {
        appRoomPaimaiDao.del(roomid,userid);
    }

    @Override
    public AppRoomPaimai getRoom(Integer roomid, Integer userid) {
        return appRoomPaimaiDao.getRoom(roomid, userid);
    }

    @Override
    public void updateState(Integer id, Integer state) {
        appRoomPaimaiDao.updateState(id,state);
    }

    @Override
    public List<AppRoomPaimai> list(Map<String, Object> map, SplitPageBean splitPageBean) {
        return appRoomPaimaiDao.list(map,splitPageBean);
    }

}
